package com.helen.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yang on 2018/5/22.
 */

public class ProductSpecEntity implements Serializable {

    /**
     * code : 0
     * msg : 获取成功
     * list : [{"name":"颜色","value":[{"id":2,"val":"红色"},{"id":3,"val":"蓝色"},{"id":4,"val":"紫色"}]},{"name":"尺寸","value":[{"id":5,"val":"L"},{"id":6,"val":"M"},{"id":7,"val":"XL"}]}]
     */

    /**
     * name : 颜色
     * value : [{"id":2,"val":"红色"},{"id":3,"val":"蓝色"},{"id":4,"val":"紫色"}]
     */

    private String name;
    private List<ValueBean> value;
    private int myId;

    public int getMyId() {
        return myId;
    }

    public void setMyId(int myId) {
        this.myId = myId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ValueBean> getValue() {
        return value;
    }

    public void setValue(List<ValueBean> value) {
        this.value = value;
    }

    public static class ValueBean implements Serializable {
        /**
         * id : 2
         * val : 红色
         */

        private int id;
        private String val;

        private int myId;

        public int getMyId() {
            return myId;
        }

        public void setMyId(int myId) {
            this.myId = myId;
        }
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getVal() {
            return val;
        }

        public void setVal(String val) {
            this.val = val;
        }
    }
}
